#pragma once

// SampleDialog dialog

#include <cv.h>
#include <highgui.h>

//#include "../base/Base.h"
#include "../base/RNG.h"

class CSampleDialog : public CDialogEx
{
	DECLARE_DYNAMIC(CSampleDialog)

public:
	CSampleDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~CSampleDialog();

// Dialog Data
	enum { IDD = IDD_DIALOG_SAMPLE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
	void ShowImage(IplImage* pImage, UINT ID);
	afx_msg void OnBnClickedButtonLoadImage();

private:
	int m_curSkyPhotoIndex;
	RNG m_rng;
	//CPixel m_sample;
	int m_sampleX;
	int m_sampleY;
	int m_r;
	int m_g;
	int m_b;

	void GenerateSample();
public:
	afx_msg void OnBnClickedButtonAc();
	afx_msg void OnBnClickedButtonRej();

	afx_msg void OnBnClickedButtonSave();
	afx_msg void OnBnClickedButtonFitmodel();
};
